package com.syh.jn.scm.service.api.driver.logistics;

import cn.redscarf.commons.wrapper.Wrapper;
import com.syh.jn.scm.dto.driver.logistics.DriverLogisticsBillItemVo;
import com.syh.jn.scm.dto.driver.logistics.DriverLogisticsBillMto;
import com.syh.jn.scm.dto.driver.logistics.DriverLogisticsBillSto;
import com.syh.jn.scm.dto.driver.logistics.DriverLogisticsBillVo;
import com.syh.jn.scm.service.core.BaseService;

import java.util.List;

/**
 * Created by soci.song on 2018/11/8.
 */
public interface DriverLogisticsBillService extends BaseService<DriverLogisticsBillSto, DriverLogisticsBillMto, DriverLogisticsBillVo, Long> {

    /**
     * 提交发货
     * @param sto
     */
    void submitDelivery(DriverLogisticsBillSto sto);

    /**
     * 提交收货
     * @param sto
     */
    void submitCollect(DriverLogisticsBillSto sto);


    /**
     * 获取物流单项
     * @param id
     * @return
     */
    List<DriverLogisticsBillItemVo> getItemsByBillId(Long id);

}
